update Entry
Updates the title and content of an existing journal entry.
This method creates a new JournalEntry object with the same ID as the existing one, and the new title and content. It then passes the updated entry to the repository for saving.
Parameters
id
The ID of the journal entry to be updated.
new Title
The new title for the journal entry.
new Content
The new content for the journal entry.